{include file = 'header.tpl'}
   
  <div class="center-column">
    <ul id="sidebar">
      { * 
      <li>
        <form action="clock.php" method="POST">
          <input type="submit" class="default-button" value="Clock In" />
        </form>
      </li>
      * }
      <li>
        <h2>In the Office</h2>
        {if $whos_in_office}
        <p>{$whos_in_office}</p>
        {else}
        <p>Nobody</p>
        {/if}          
      </li>
      <li>
        <h2>On Deck</h2>
        {if $next_shift}
        <p>{$next_shift}</p>
        {else}
        <p>Nobody</p>
        {/if}
      </li>
      
      {if $user_next}
      <li>
        <h2>Your Next</h2>
        <p>{$user_next}</p>
      </li>
      {/if}
      <li>
        <h2>Open Shifts</h2>
        {if $next_open}
        {section name = a_loop loop = $next_open}
        <p>{$next_open[a_loop]}</p>
        {/section}
        {else}
        <p>None</p>
        {/if}
      </li>
    </ul>
    
    <div id="primary">
      <form action="qa-search.php" id="search-form" method="POST">
        <fieldset>
          <input type="text" class="default-text-input mid-text-input" name="q" id="q" value="Question and Answer Search" autocomplete="off" />
          <input type="submit" class="default-button" id="search-button" value="Search" />
        </fieldset>
      </form>
      
      <form action="add-question.php" id="add-question" method="POST">
        <h2>Add a New Question</h2>
        <fieldset class="stacked-fields">
          <input type="text" class="default-text-input" name="question" id="question" value="Question" autocomplete="off" />
          <input type="text" class="default-text-input" name="answer" id="answer" value="Answer" autocomplete="off" />
          <input type="text" class="default-text-input" name="qa-source" id="qa-source" value="Source" autocomplete="off" />
          <input type="hidden" id="newest_qa_id" value="{$newest_qa_id}" />
          <input type="submit" class="default-button" id="add-qa-button" value="Add" />         
        </fieldset>
      </form>
      
      <ul id="timeline">
        <h2>Recent Questions</h2>
        {$qas}
      </ul>
    </div>
  </div>
    
{include file = 'footer.tpl'}
